package cn.wowjoy.pda.android_pharmacy.ui.activity;

import android.os.Bundle;
import android.view.View;

import cn.wowjoy.pda.android_pharmacy.R;
import cn.wowjoy.pda.android_pharmacy.common.core.BaseActivity;
import cn.wowjoy.pda.android_pharmacy.databinding.ActivityModifyBinding;
import cn.wowjoy.pda.android_pharmacy.mvvm.presenter.ModifyPresenter;
import cn.wowjoy.pda.android_pharmacy.mvvm.vm.ModifyViewModel;

public class ModifyActivity extends BaseActivity<ActivityModifyBinding,ModifyViewModel,ModifyPresenter> {


    @Override
    protected void init(Bundle savedInstanceState) {
        binding.ModifyTitle.titleTextTv.setText("更改密码");
        binding.ModifyTitle.titleBackLl.setVisibility(View.VISIBLE);
        binding.ModifyTitle.titleBackTv.setVisibility(View.GONE);
        binding.ModifyTitle.titleBackLl.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_modify;
    }

    @Override
    protected Class<ModifyPresenter> getPresenterClass() {
        return ModifyPresenter.class;
    }

    @Override
    protected Class<ModifyViewModel> getViewModelClass() {
        return ModifyViewModel.class;
    }
}
